package oohomework;
public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三",25,"佳木斯","jsd2507","001");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();

        Teacher ls = new Teacher("李四",35,"北京",6000);
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();

        Doctor ww = new Doctor("王五",45,"河北","主治医师");
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();

        Person ll = new Person("李林",25,"山西");
        ll.eat();
        ll.sleep();
        ll.sayHi();
    }
}
